package com.youmu.sichuansfc.domain;

import javax.persistence.*;
import java.sql.Date;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "youmu_company_risk", schema = "youmu", catalog = "")
public class YoumuCompanyRisk {
    private Long id;
    private Timestamp addTime;
    private String problemCode;
    private String suggest;
    private String cue;
    private String detail;
    private String rank;
    private String img;
    private Long companyId;
    private Boolean isDelete;

    public void setId(long id) {
        this.id = id;
    }

    public void setCompanyId(long companyId) {
        this.companyId = companyId;
    }

    @Id
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "add_time")
    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    @Basic
    @Column(name = "problem_code")
    public String getProblemCode() {
        return problemCode;
    }

    public void setProblemCode(String problemCode) {
        this.problemCode = problemCode;
    }

    @Basic
    @Column(name = "suggest")
    public String getSuggest() {
        return suggest;
    }

    public void setSuggest(String suggest) {
        this.suggest = suggest;
    }

    @Basic
    @Column(name = "cue")
    public String getCue() {
        return cue;
    }

    public void setCue(String cue) {
        this.cue = cue;
    }

    @Basic
    @Column(name = "detail")
    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Basic
    @Column(name = "rank")
    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    @Basic
    @Column(name = "img")
    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Basic
    @Column(name = "company_id")
    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }


    @Basic
    @Column(name = "is_delete")
    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean delete) {
        isDelete = delete;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YoumuCompanyRisk that = (YoumuCompanyRisk) o;
        return id == that.id &&
                companyId == that.companyId &&
                isDelete == that.isDelete &&
                Objects.equals(addTime, that.addTime) &&
                Objects.equals(problemCode, that.problemCode) &&
                Objects.equals(suggest, that.suggest) &&
                Objects.equals(cue, that.cue) &&
                Objects.equals(detail, that.detail) &&
                Objects.equals(rank, that.rank) &&
                Objects.equals(img, that.img);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, addTime, problemCode, suggest, cue, detail, rank, img, companyId, isDelete);
    }
}
